package com.ncloud.timetask.dao;

import com.alibaba.fastjson.JSONObject;

import java.util.List;
import java.util.Map;

/**
 * Created by shiqiang on 2017/5/16.
 */
public interface BaseDao {
    List<Map<String, Object>> commonQuery(String sql);
    Map<String, Object> commonQueryOne(String sql);
    int commonExecute(String sql, Map<String, Object> param);
    List<Map<String, Object>> commonQuery(String sql, Object[] param, int[] argTypes);
    int update(String sql, Object[] args, int[] argTypes);
    List<Map<String, Object>> commonQuery(String sql, JSONObject param);
    void execute(String sql, JSONObject param);
}
